package com.ruicar.afs.cloud.wechat.service;

import com.alibaba.fastjson.JSONObject;
import com.ruicar.afs.cloud.wechat.dto.WechatDTO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

public interface WechatService {

    /**
     * 获取微信token
     *
     * @param data
     * @return
     */
    JSONObject getToken(@RequestParam Map<String, String> data);
    /**
     * 通过该接口生成的小程序码，永久有效，数量暂无限制
     * @param wechatDTO
     * @param data
     * @return
     */
    byte[] getScene(@RequestBody WechatDTO wechatDTO, @RequestParam Map<String, String> data);

}
